package service.impl;

import dao.BooksDao;
import dao.impl.BooksDaoImpl;
import entity.Books;
import service.BooksService;

import java.sql.ResultSet;

public class BooksServiceImpl implements BooksService {
    BooksDao booksDao = new BooksDaoImpl();
    @Override
    public int insertBooks(Books books) {
        return booksDao.insertBooks(books);
    }

    @Override
    public int deleteBooks(int bid) {
        return booksDao.deleteBooks(bid);
    }

    @Override
    public int updateBooks(Books books) {
        return booksDao.updateBooks(books);
    }

    @Override
    public ResultSet selectBooksList(int uid,String time) {
        return booksDao.selectBooksList(uid,time);
    }

    @Override
    public ResultSet selectBooks(int bid) {
        return booksDao.selectBooks(bid);
    }

    @Override
    public ResultSet selectAmount(int uid, int sid, String time) {
        return booksDao.selectAmount(uid,sid,time);
    }

    @Override
    public ResultSet selectCurrentMonthAmount(int uid) {
        return booksDao.selectCurrentMonthAmount(uid);
    }

    @Override
    public ResultSet selectSumAmount(int uid, int sid) {
        return booksDao.selectSumAmount(uid,sid);
    }

    @Override
    public ResultSet selectToday(int uid, int sid) {
        return booksDao.selectToday(uid,sid);
    }

    @Override
    public ResultSet selectYesterday(int uid, int sid) {
        return booksDao.selectYesterday(uid,sid);
    }

    @Override
    public ResultSet selectThisWeek(int uid, int sid) {
        return booksDao.selectThisWeek(uid,sid);
    }

    @Override
    public ResultSet selectLastWeek(int uid, int sid) {
        return booksDao.selectLastWeek(uid,sid);
    }

    @Override
    public ResultSet selectNearlySevenDays(int uid, int sid) {
        return booksDao.selectNearlySevenDays(uid,sid);
    }

    @Override
    public ResultSet selectThisMonth(int uid, int sid) {
        return booksDao.selectThisMonth(uid,sid);
    }

    @Override
    public ResultSet selectLastMonth(int uid, int sid) {
        return booksDao.selectLastMonth(uid,sid);
    }

    @Override
    public ResultSet selectNearlyThirtyDays(int uid, int sid) {
        return booksDao.selectNearlyThirtyDays(uid,sid);
    }

    @Override
    public ResultSet selectNearlySixMonth(int uid, int sid) {
        return booksDao.selectNearlySixMonth(uid, sid);
    }

    @Override
    public ResultSet selectThisQuarter(int uid, int sid) {
        return booksDao.selectThisQuarter(uid, sid);
    }

    @Override
    public ResultSet selectLastQuarter(int uid, int sid) {
        return booksDao.selectLastQuarter(uid,sid);
    }

    @Override
    public ResultSet selectThisYear(int uid, int sid) {
        return booksDao.selectThisYear(uid,sid);
    }

    @Override
    public ResultSet selectLastYear(int uid, int sid) {
        return booksDao.selectLastYear(uid,sid);
    }
}
